<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>testing</title>
</head>

<body>
    <div id="app">123
    </div>
    <script src="../../dist/mini-vue.js"></script>
    <script>
        const { reactive, computed, ref } = MiniVue;

        const TreeItem = {
            template: '<div>999</div>',
            // 只支持数组写法
            props: ['model'],
            setup(props) {
                const open = ref(false);

                return {
                    open
                };
            },
        };
    </script>
    <script>
        MiniVue.createApp({
            components: { TreeItem },
            setup() {

            }
        }).mount("#app")
    </script>
</body>

</html>